<!DOCTYPE html>
<html>
<head>
    <title>商品评价</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:pmsspucomment:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:pmsspucomment:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:pmsspucomment:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">sku_id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.skuId" placeholder="sku_id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">spu_id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.spuId" placeholder="spu_id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品名字</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.spuName" placeholder="商品名字"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">会员昵称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.memberNickName" placeholder="会员昵称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">星级</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.star" placeholder="星级"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">会员ip</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.memberIp" placeholder="会员ip"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.createTime" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">显示状态[0-不显示，1-显示]</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.showStatus" placeholder="显示状态[0-不显示，1-显示]"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">购买时属性组合</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.spuAttributes" placeholder="购买时属性组合"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">点赞数</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.likesCount" placeholder="点赞数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">回复数</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.replyCount" placeholder="回复数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">评论图片/视频[json数据；[{type:文件类型,url:资源路径}]]</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.resources" placeholder="评论图片/视频[json数据；[{type:文件类型,url:资源路径}]]"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">内容</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.content" placeholder="内容"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户头像</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.memberIcon" placeholder="用户头像"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">评论类型[0 - 对商品的直接评论，1 - 对评论的回复]</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="pmsSpuComment.commentType" placeholder="评论类型[0 - 对商品的直接评论，1 - 对评论的回复]"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/pmsspucomment.js?_${.now?long}"></script>
</body>
</html>